package com.example.stock.init;

import com.example.stock.task.FinanceDataTask;
import jakarta.annotation.PostConstruct;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Log4j2
@Order(2)
@Component
public class FinanceDataInit {

    @Autowired
    FinanceDataTask task;

    @PostConstruct
    void dataInit() {
        task.genRoeData();
        task.genAdjustedProfitData();
        task.genTotalOperatingRevenueData();
        task.genNetProfitMarginData();
        task.genGrossProfitMarginData();
        task.genLiabilityOnAssetRatioData();
        task.genIncTotalRevenueYearOnYearData();

        // levelPoint
        //task.genLevelPointData();
    }
}
